package org.bright.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import org.bright.entity.PurchaseOrderDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.bright.vo.PurchaseOrderDetailsProductsVO;

/**
 * <p>
 * 采购明细表 记录每个采购订单的具体商品信息。 Mapper 接口
 * </p>
 *
 * @author bright
 * @since 2024-10-21
 */
@Mapper
public interface PurchaseOrderDetailsMapper extends BaseMapper<PurchaseOrderDetails> {
    int insertBatch(@Param("purchaseOrderDetails") List<PurchaseOrderDetails> purchaseOrderDetails);

    List<PurchaseOrderDetailsProductsVO> selectAllByOrderIdAndSupplierId(@Param("orderId") String orderId, @Param("supplierId") Integer supplierId);

    List<PurchaseOrderDetails> selectAllByOrderId(String orderId);
}
